//
//package com.rt.schedulebase.service.impl;
//import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
//import com.baomidou.mybatisplus.core.conditions.Wrapper;
//import org.apache.commons.lang3.StringUtils;
//import java.util.Map;
//import java.util.HashMap;
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import java.util.List;
//import com.rt.schedulebase.dto.DictScheduleApmDutyDto;
//import java.io.Serializable;
//import org.springframework.stereotype.Service;
//import com.rt.schedulebase.service.IDictScheduleApmDutyService;
//import com.rt.schedulebase.entity.DictScheduleApmDuty;
//import com.rt.schedulebase.mapper.DictScheduleApmDutyMapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//@Service("DictScheduleApmDutyServiceImpl_v2")
//public class DictScheduleApmDutyServiceImpl extends ServiceImpl<DictScheduleApmDutyMapper, DictScheduleApmDuty> implements IDictScheduleApmDutyService
//{
//@Override
//    public boolean insertSelective(final DictScheduleApmDuty dictScheduleApmDuty) {
//        return this.retBool(Integer.valueOf(((DictScheduleApmDutyMapper)this.baseMapper).insert(dictScheduleApmDuty)));
//    }
//
//@Override
//    public boolean deleteByPrimaryKey(final String key) {
//        return this.retBool(Integer.valueOf(((DictScheduleApmDutyMapper)this.baseMapper).deleteById((Serializable)key)));
//    }
//
//@Override
//    public boolean updateByPrimaryKeySelective(final DictScheduleApmDuty dictScheduleApmDuty) {
//        return this.retBool(Integer.valueOf(((DictScheduleApmDutyMapper)this.baseMapper).updateById(dictScheduleApmDuty)));
//    }
//
//@Override
//    public DictScheduleApmDuty selectByPrimaryKey(final String key) {
//        return (DictScheduleApmDuty)((DictScheduleApmDutyMapper)this.baseMapper).selectById((Serializable)key);
//    }
//
//@Override
//    public List<DictScheduleApmDuty> getList(final DictScheduleApmDutyDto dto) {
//        final QueryWrapper<DictScheduleApmDuty> qw = (QueryWrapper<DictScheduleApmDuty>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APM_CODE", dto.getApmCode());
//        map.put("STATUS", dto.getStatus());
//        map.put("SCHEDULE_DATE", dto.getScheduleDate());
//        qw.allEq((Map)map, false);
//        if (StringUtils.isNotBlank((CharSequence)dto.getStartDate()) && StringUtils.isNotBlank((CharSequence)dto.getEndDate())) {
//            qw.between("SCHEDULE_DATE", dto.getStartDate(), dto.getEndDate());
//        }
//        final List<DictScheduleApmDuty> list = (List<DictScheduleApmDuty>)((DictScheduleApmDutyMapper)this.baseMapper).selectList((Wrapper)qw);
//        return list;
//    }
//
//@Override
//    public List<DictScheduleApmDuty> getListAll() {
//        return (List<DictScheduleApmDuty>)((DictScheduleApmDutyMapper)this.baseMapper).selectList((Wrapper)null);
//    }
//
//@Override
//    public boolean delete(final DictScheduleApmDuty dictScheduleApmDuty) {
//        final UpdateWrapper<DictScheduleApmDuty> uw = (UpdateWrapper<DictScheduleApmDuty>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("SCHEDULE_DATE", dictScheduleApmDuty.getScheduleDate());
//        map.put("APM_CODE", dictScheduleApmDuty.getApmCode());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((DictScheduleApmDutyMapper)this.baseMapper).delete((Wrapper)uw)));
//    }
//
//@Override
//    public boolean update(final DictScheduleApmDuty dictScheduleApmDuty) {
//        final UpdateWrapper<DictScheduleApmDuty> uw = (UpdateWrapper<DictScheduleApmDuty>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("SCHEDULE_DATE", dictScheduleApmDuty.getScheduleDate());
//        map.put("APM_CODE", dictScheduleApmDuty.getApmCode());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((DictScheduleApmDutyMapper)this.baseMapper).update(dictScheduleApmDuty, (Wrapper)uw)));
//    }
//
//@Override
//    public DictScheduleApmDuty getInfo(final DictScheduleApmDutyDto dto) {
//        final QueryWrapper<DictScheduleApmDuty> qw = (QueryWrapper<DictScheduleApmDuty>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("SCHEDULE_DATE", dto.getScheduleDate());
//        map.put("APM_CODE", dto.getApmCode());
//        qw.allEq((Map)map, false);
//        return (DictScheduleApmDuty)((DictScheduleApmDutyMapper)this.baseMapper).selectOne((Wrapper)qw);
//    }
//}
